#pragma once
#include <iostream>
#include <string>
#include "surveyAlligatorException.h"
#using <System.dll>

using namespace std;
using namespace System;
using namespace Text::RegularExpressions;
using namespace System::IO;
using namespace System::Reflection;

class grammarNormalizer{
	public:
		static bool checkValidGrammar(String^ html) throw ();
		static String^ insertJavaScriptValidation(String^ htmlTag);
		static String^ embedJavaScriptValidationIntoHTML(String^ html)throw ();

	private:
		static bool validateUniquenessTag(String^ htmlTag) throw ();
		static bool validateFile_InfoTag(String^ htmlTag) throw ();
		static bool validateFormTag(String^ htmlTag) throw ();
		static bool validateTitleTag(String^ htmlTag) throw ();
		static bool validateInputTag(String^ htmlTag) throw ();
		static bool validateTextAreaTag(String^ htmlTag) throw ();
		static bool validateSelectTag(String^ htmlTag) throw ();
		static bool checkInputParameterTags(String^ html) throw ();
		static bool checkSpecialTags(String^ html) throw ();
};
